package com.gxuwz.check.service.admin.impl;

import com.gxuwz.check.dao.admin.IClassDao;
import com.gxuwz.check.model.dto.ClassDto;
import com.gxuwz.check.model.entity.SysClassEntity;
import com.gxuwz.check.service.admin.IClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassServiceImpl implements IClassService {
    @Autowired
    private IClassDao classDao;

    @Override
    public List<ClassDto> list(int page) {
        List<ClassDto> list = classDao.list(page);
        return list;
    }

    @Override
    public void delete(Integer classId) {
        classDao.delete(classId);
    }

    @Override
    public void edit() {

    }

    @Override
    public void save(String className, int collegeId) {
        classDao.save(className,collegeId);
    }

    @Override
    public ClassDto findClassById(int classId) {
        return classDao.findClassById(classId);
    }
}
